CC= gcc

PREFIX=../..

INCDIR = $(PREFIX)/include
LIBDIR = $(PREFIX)/lib
BINDIR = $(PREFIX)/bin

CFLAGS= -g -Wall -std=c99 
CPPFLAGS= -I$(INCDIR) 
LDLIBS= -L$(LIBDIR)

LIBFILENAME=
INSTHEADERS=


OUTFILE= test_skip

OBJS   = skip_list.o test_skip.o

$(OUTFILE) : $(OBJS)

skip_list.o: skip_list.c skip_list.h 
test_skip.o: test_skip.c skip_list.h

all: $(OUTFILE)

install:  $(OUTFILE)
	test -d $(INCDIR) || mkdir $(INCDIR)
	test -d $(LIBDIR) || mkdir $(LIBDIR)
	cp $(INSTHEADERS) $(INCDIR)
	ar -rs  $(LIBDIR)/$(LIBFILENAME)  tsp.o

clean :
	rm -f  $(OUTFILE) $(OBJS)

mrproper: clean
	rm -f   $(LIBDIR)/$(LIBFILENAME)  $(INCDIR)/$(INSTHEADERS)